package com.bjsdzk.collector;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

import com.alibaba.dubbo.spring.boot.annotation.EnableDubboConfiguration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages={"com.bjsdzk.collector"})
@EnableDubboConfiguration
@EnableScheduling 
@EnableAspectJAutoProxy
@EnableCaching
@EnableSwagger2
@Slf4j
public class CollertorApplication {

	private static Logger logger = LoggerFactory.getLogger(CollertorApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(CollertorApplication.class, args);



		log.debug("debug");
		log.warn("warn");
		log.info("info");
		log.error("error");

		logger.debug("loggerdebug");
		logger.warn("loggerwarn");
		logger.info("loggerinfo");
		logger.error("loggererror");

	}
}
